/**
 * 过滤对象中为空的属性
 * @param obj
 */
export function filterObj(obj: { [key: string]: string }): { [key: string]: string } {
  for (const key in obj) {
    if (obj[key] == null || obj[key] == undefined || obj[key] === '') {
      delete obj[key];
    }
  }
  return obj;
}
